<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>唯一官方认定中科大家教平台</title>
    <meta name="keywords" content="家教,中科大,科大,家教中介,平台,超老师,名校家教 ">
    <meta name="description" content="超老师家教平台是中国科学技术大学辅导中心唯一官方指定平台，专为中小学家长朋友们提供优质的科大家教服务。
我们对平台的每一位老师负责，为老师教授的每一位学生负责，为老师讲授的每一节课负责。我们全程跟进教学、深度参与教学与质量检测。严把质量关，力求教学效果最大化，让孩子在最短的时间，有最大的进步！​‌‌">
    <meta name="viewport" content="width=device-width,height=device-height,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="./teachlist.less">
    <link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
</head>
<body>
    <link rel="import" href="../common/header.html?__inline">
    <div class="indexbox">
        <div class="index-head clearfix">
            <p>超老师平台教员列表</p>
            <div class="btn-group sex">
                <a class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    性别<span class="caret"></span>
                </a>
                  <ul class="dropdown-menu">
                    <li><a href="/Home/Index/teacherList/grade/<?php echo $filter['grade']; ?>/lesson/<?php echo $filter['lesson']; ?>/school/<?php echo  $filter['school']; ?>/sex/0" class="btn btn-filter <?php if($filter['sex']==0) echo 'active'; ?>">不限</a></li>
                    <li role="separator" class="divider"></li>
                    <li><a href="/Home/Index/teacherList/grade/<?php echo $filter['grade']; ?>/lesson/<?php echo $filter['lesson']; ?>/school/<?php echo  $filter['school']; ?>/sex/1" class="btn btn-filter <?php if($filter['sex']==1) echo 'active'; ?>">男</a></li>
                    <li role="separator" class="divider"></li>
                    <li><a href="/Home/Index/teacherList/grade/<?php echo $filter['grade']; ?>/lesson/<?php echo $filter['lesson']; ?>/school/<?php echo  $filter['school']; ?>/sex/2" class="btn btn-filter <?php if($filter['sex']==2) echo 'active'; ?>">女</a></li>
                  </ul>
            </div>
            <div class="tab">
                <a href="/Home/Index/teacherList/lesson/<?php echo $filter['lesson']; ?>/sex/<?php echo $filter['sex']; ?>/school/<?php echo $filter['school']; ?>/grade/0" class=" btn-filter <?php if($filter['grade']==0) echo 'active'; ?>" id="all_grade">不限</a>
                <?php
                        foreach ($grade as $key => $value) {
                ?>
                <a href="/Home/Index/teacherList/lesson/<?php echo $filter['lesson']; ?>/sex/<?php echo $filter['sex']; ?>/school/<?php echo $filter['school']; ?>/grade/<?php echo $key; ?>" class="btn-filter <?php if($filter['grade']==$key) echo 'active'; ?>" id="primary"><?php echo $value;?></a>
                <?php
                        }
                    ?>
                <a href="">自主招生</a><a href="">竞赛</a>
            </div>
        </div>
        <div class="index-main">
            <div class="clearfix">
                <span>科目选择：</span>
                <div>
                    <a href="/Home/Index/teacherList/grade/<?php echo $filter['grade']; ?>/sex/<?php echo $filter['sex']; ?>/school/<?php echo $filter['school']; ?>/lesson/0" class=" btn-filter <?php if($filter['lesson']==0) echo 'active'; ?>">全部</a>
                    <?php
                            foreach ($lesson as $key => $value) {
                    ?>
                    <a href="/Home/Index/teacherList/grade/<?php echo $filter['grade']; ?>/sex/<?php echo $filter['sex']; ?>/school/<?php echo $filter['school']; ?>/lesson/<?php echo $key; ?>" class="btn-filter <?php if($filter['lesson']==$key) echo 'active'; ?>"><?php echo $value; ?></a>
                    <?php
                            }
                        ?>
                </div>
            </div>
            <div class="clearfix">
                <span>学校选择：</span>
                <div>
                    <a href="/Home/Index/teacherList/grade/<?php echo $filter['grade']; ?>/sex/<?php echo $filter['sex']; ?>/lesson/<?php echo $filter['lesson']; ?>/school/0" class=" btn-filter <?php if($filter['school']==0) echo 'active'; ?>">不限</a>
                    <?php
                            foreach ($school as $key => $value) {
                    ?>
                    <a href="/Home/Index/teacherList/grade/<?php echo $filter['grade']; ?>/sex/<?php echo $filter['sex']; ?>/lesson/<?php echo $filter['lesson']; ?>/school/<?php echo $key; ?>" class="btn-filter <?php if($filter['school']==$key) echo 'active'; ?>"><?php echo $value; ?></a>
                    <?php
                            }
                        ?>
                </div>
            </div>
        </div>
    </div>
    <div class="teach-box">
        <ul>
            <foreach name="data" item="vo" >
                <li>
                    <img src="__ROOT__/upload/{$vo.avatar}" alt="{$vo.relname} 的头像" class="avatar">
                    <div class="left">
                        <div class="head">
                            <p class="name">姓名：<span>{$vo.relname}</span></p>
                            <p>就读院校：<span>{$vo.school}</span></p>
                            <p class="score">高考成绩：<span>{$vo.score}</span></p>
                        </div>
                        <div class="middle clearfix">
                            <p>授课科目：<span>{$vo.lesson}</span></p>
                            <p>授课年级：<span>{$vo.grade}</span></p>
                        </div>
                        <div class="foot">
                            <p>个人描述：<span>{$vo.description}</span></p>
                        </div>
                    </div>
                    <div class="right">
                        <div class="head">
                            <div>
                                <img src="../common/resource/peixun.png" alt="" width="20" height="30">
                                <p>培训认证</p>
                            </div>
                        </div>
                        <div class="middle">
                            <?php if(session('type') != 1){?>

                            <if condition="($vo['is_full'] eq 0) ">
                                <a href="javascript:;" data-id="<?php echo
           $vo['user_id'] ?>" class="btn btn-primary long_click"><i class="iconfont">&#xe60d;</i>申请预约</a>
                            </if>

                            <if condition="($vo['is_full'] eq 1) ">
                                <a href="javascript:;" class="btn btn-primary is_full" data-id="<?php echo
        $vo['user_id'] ?>">申请预约</a>
                           </if>

                            <?php }?>

                            <a href="/Home/Index/teacherDetail/id/{$vo.user_id}" target="_blank" class="btn btn-primary"><i class="iconfont">&#xe60c;</i>查看详情</a>
                        </div>
                    </div>
                </li>
            </foreach>
        </ul>
    </div>
    <script>
        var id = '<?php echo session('id');?>';
    </script>
    <link rel="import" href="../common/footer.html?__inline">

    <script type="text/javascript" src="./teachlist.js"></script>
</body>
</html>
